package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.entity.Result;
import com.itheima.pojo.Category;

import java.util.List;

public interface CategoryService extends IService<Category> {
    Result<List<Category>> findAll();

    Result<Object> findPage(Integer page, Integer size);

    Result<Object> findById(Integer id);

    Result<Object> delete(Integer id);

    Result<List<Category>> add(Category category);

    Result<Object> update(Category category);
}
